<template>
  <div>
    <el-button type="primary" @click="handlePreview()">预览pdf</el-button>
    <PreviewPdf ref="PreviewPdfRef" />
  </div>
</template>

<script setup>
  import PreviewPdf from "@/components/PreviewPdf.vue";
  const PreviewPdfRef = ref();

  const handlePreview = () => {
    PreviewPdfRef.value.open();
  };
</script>

<style lang="scss" scoped></style>
